<?php

namespace app\controller;

use app\Request;

class UploadFile
{

    public function index()
    {
        // 获取表单上传文件
        $files = request()->file('image');
        $name = [];
        foreach($files as $file){
            $name[] = Filesystem::putFile( 'topic', $file);
        }
        dump($name);
//        return view('D:\php\phpEnv\www\www.tp.com\view\borrow.html', [
//            'url'     =>  $name
//        ]);
    }


}